package designMode.abstractFactoryPattern;

/**
 * @ClassName Pizza
 * @Description
 * @Author LIBOFEI
 * @Date 2020/6/23 22:05
 * @Version 1.0
 **/
public abstract class Pizza {
    String name;
    Dough dough;
    Sauce sauce;

    abstract void prepare();

    void bake(){
        System.out.println("brak");
    }

    void cut(){
        System.out.println("cut");
    }

    void box(){
        System.out.println("box");
    }

    void setName(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
